package com.my.mall.client.goods.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.mall.client.goods.dao.GoodsClientDao;
import com.my.mall.client.goods.vo.GoodsCategoryClientVo;
import com.my.mall.client.goods.vo.GoodsClientVo;
import com.my.mall.client.goods.vo.ImageClientVo;

@Service
public class GoodsClientService {

	@Autowired
	GoodsClientDao goodsClientDao;

	public GoodsClientVo getGoodsInfo(int id) {
		return goodsClientDao.getGoodsInfo(id);
	}

	public List<ImageClientVo> selectGoodsImgList(int id) {
		return goodsClientDao.selectGoodsImgList(id);
	}

	public List<GoodsClientVo> selectGoodsInfoList(int categoryId, int displayStart, int displayLength) {
		return goodsClientDao.selectGoodsInfoList(categoryId, displayStart, displayLength);
	}

	public int selectGoodsInfoCount(int categoryId) {
		return goodsClientDao.selectGoodsInfoCount(categoryId);
	}
	
	public List<GoodsCategoryClientVo> selectGoodsCategoryList(){
		return goodsClientDao.selectGoodsCategoryList();
	}
}
